/**
 * Record pre-insert trigger.
 * Validate the record to be inserted.
 * When false is returned the record will not be inserted in the database.
 * When an exception is thrown the record will also not be inserted in the database but it will be added to databaseManager.getFailedRecords(),
 * the thrown exception can be retrieved via record.exception.getValue().
 *
 * @param {JSRecord<db:/consorcios/cta_cte>} record record that will be inserted
 *
 * @returns {Boolean}
 *
 * @properties={typeid:24,uuid:"0719B703-3AB7-4E1F-8AAF-2E3E69F742B6"}
 */
function onCta_cteRecordInsert(record) {
	if (cod_mov == 1)
		record.importe_signo = record.importe * (-1)
	else
		record.importe_signo = record.importe
	return true
}
